

public class JedisTest {

    static ABCluster cluster = new ABCluster();

    public static void main(String[] args) {
//        cluster.initRedisCluster("ids1:7401#ids1:7402#ids1:7403", null);
//        cluster.initRedisCluster("45.56.82.159:7000#45.56.82.159:7002", null);
        cluster.initRedisCluster("10.0.1.100:7000#10.0.1.100:7001#10.0.1.100:7002#10.0.1.100:7003#10.0.1.100:7004#10.0.1.100:7005", null);

//        System.out.println(cluster.getJedisCluster().getClusterNodes().size());
//
        cluster.insert(10, 2);
//
        System.out.println(cluster.getB(10));
    }
}
